home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
11587
/
11587.xpi
/
chrome
/
aviary.jar
/
content
/
browserOverlay.xul
< prev
next >
Wrap
Extensible Markup Language
|
2009-10-08
|
13KB
|
251 lines
<?xml version="1.0"?>
<!-- Copyright (c) 2007-2009 Pearl Crescent, LLC. All Rights Reserved.
-->
<!-- vim: set sw=2 sts=2 ts=8 et syntax=xml: -->
<!DOCTYPE overlay SYSTEM "chrome://aviary/locale/extension.dtd">
<?xml-stylesheet href="chrome://aviary/skin/browserOverlay.css"
type="text/css"?>
<overlay id="aviary-overlay"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"
src="chrome://browser/content/browser.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/browserOverlay.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/upload.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/progress.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/pearlutil.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/util.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/pearlutil-grab.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/pearlutil-clipboard.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/pearlutil-request.js"/>
<menubar id="main-menubar">
<menu id="Aviary-menu" label="&aviaryMenu.label;"
accesskey="&aviaryMenu.accesskey;" insertafter="tools-menu">
<menupopup id="menu_AviaryPopup" onpopupshowing="">
<menuitem label="&aviaryCaptureImageOfPageRegion.label;"
tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
oncommand="gAviaryMain.CaptureRegion();" />
<menuitem label="&aviaryCaptureImageOfPageVisible.label;"
tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt);" />
<menuitem label="&aviaryCaptureImageOfPageFull.label;"
tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt);" />
<menuseparator />
<menuitem id="aviary-falcon" label="&aviaryFalcon.label;"
class="menuitem-iconic" accesskey="&aviaryFalcon.accesskey;"
aviary-tid="20"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-phoenix" label="&aviaryPhoenix.label;"
class="menuitem-iconic" accesskey="&aviaryPhoenix.accesskey;"
aviary-tid="1"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-toucan" label="&aviaryToucan.label;"
class="menuitem-iconic" accesskey="&aviaryToucan.accesskey;"
aviary-tid="2"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-peacock" label="&aviaryPeacock.label;"
class="menuitem-iconic" accesskey="&aviaryPeacock.accesskey;"
aviary-tid="3"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-raven" label="&aviaryRaven.label;"
class="menuitem-iconic" accesskey="&aviaryRaven.accesskey;"
aviary-tid="4"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-hummingbird" label="&aviaryHummingbird.label;"
class="menuitem-iconic"
aviary-tid="5"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-myna" label="&aviaryMyna.label;"
class="menuitem-iconic" accesskey="&aviaryMyna.accesskey;"
aviary-tid="6"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuitem id="aviary-woodpecker" label="&aviaryWoodpecker.label;"
class="menuitem-iconic"
aviary-tid="14"
oncommand="gAviaryMain.LaunchApp(this);" />
<menuseparator />
<menuitem label="&aviaryHome.label;" accesskey="&aviaryHome.accesskey;"
url="http://aviary.com/home/"
oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
<menuitem id="aviary-dashboard" label="&aviaryDashboard.label;"
accesskey="&aviaryDashboard.accesskey;"
url="http://aviary.com/dashboard/"
oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
<menuitem id="aviary-settings" label="&aviarySettings.label;"
url="http://aviary.com/editprofile/"
oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
<menuitem id="aviary-login" label="&aviaryLogin.label;"
accesskey="&aviaryLogin.accesskey;"
aviaryLoginLabel="&aviaryLogin.label;"
aviaryLogoutLabel="&aviaryLogout.label;"
oncommand="gAviaryMain.LoginOrOut();" />
<menuseparator />
<menuitem id="aviary-ext-options" label="&aviaryTalonOptions.label;"
class="menuitem-iconic"
oncommand="gAviaryMain.OpenTalonOptions();" />
<menuseparator />
<menuitem label="&aviaryAbout.label;"
url="http://aviary.com/about"
oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
<menuitem label="&aviaryAboutExtension.label;"
url="http://aviary.com/tools/talon"
oncommand="gAviaryMain.OpenURLFromMenu(this, event);" />
<!-- TODO: add menu items for other tools? -->
</menupopup>
</menu>
</menubar>
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="aviary-captureimageofpage" type="menu-button"
label="&aviaryCaptureImageOfPage.label;"
tooltiptext="&aviaryCaptureImageOfPage.tooltip;"
class="toolbarbutton-1 chromeclass-toolbar-additional"
oncommand="gAviaryMain.CaptureDefault();" >
<menupopup>
<menuitem label="&aviaryCaptureImageOfPageRegion.label;"
tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
oncommand="gAviaryMain.CaptureRegion(); event.stopPropagation();" />
<menuitem label="&aviaryCaptureImageOfPageVisible.label;"
tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt); event.stopPropagation();" />
<menuitem label="&aviaryCaptureImageOfPageFull.label;"
tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt); event.stopPropagation();" />
</menupopup>
</toolbarbutton>
</toolbarpalette>
<statusbar id="status-bar">
<statusbarpanel id="aviary-statusbar-capture" hidden="true"
tooltiptext="&aviaryCaptureImageOfPage.tooltip;"
oncommand="gAviaryMain.CaptureDefault();" >
<button type="menu-button">
<menupopup>
<menuitem label="&aviaryCaptureImageOfPageRegion.label;"
tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
oncommand="gAviaryMain.CaptureRegion(); event.stopPropagation();" />
<menuitem label="&aviaryCaptureImageOfPageVisible.label;"
tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt); event.stopPropagation();" />
<menuitem label="&aviaryCaptureImageOfPageFull.label;"
tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt); event.stopPropagation();" />
</menupopup>
</button>
</statusbarpanel>
</statusbar>
<popup id="contentAreaContextMenu">
<menu id="aviary-captureimageofpageCM"
class="menu-iconic"
label="&aviaryCaptureImageOfPageCM.label;"
insertafter="context-savepage">
<menupopup>
<menuitem label="&aviaryCaptureImageOfPageRegion.label;"
tooltiptext="&aviaryCaptureImageOfPageRegion.tooltip;"
oncommand="gAviaryMain.CaptureRegion();" />
<menuitem label="&aviaryCaptureImageOfPageVisible.label;"
tooltiptext="&aviaryCaptureImageOfPageVisible.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionVisible, gAviaryMain.kActionPrompt);" />
<menuitem label="&aviaryCaptureImageOfPageFull.label;"
tooltiptext="&aviaryCaptureImageOfPageFull.tooltip;"
oncommand="gAviaryMain.CaptureImageOfPage(gAviaryMain.kPortionEntire, gAviaryMain.kActionPrompt);" />
</menupopup>
</menu>
<menu id="aviary-editThisImage" label="&aviary-editThisImage.label;"
class="menu-iconic"
insertafter="context-viewimage" >
<menupopup>
<menuitem id="aviary-saveImage" label="&aviary-saveImage.label;"
class="menuitem-iconic"
accesskey="&aviary-saveImage.accesskey;"
insertafter="context-saveimage"
oncommand="gAviaryMain.SaveImage(document.popupNode, false)"/>
<menuitem id="aviary-editImage" label="&aviary-editImage.label;"
class="menuitem-iconic"
accesskey="&aviary-editImage.accesskey;"
insertafter="context-viewimage"
oncommand="gAviaryMain.EditImage(document.popupNode)" />
</menupopup>
</menu>
<menu id="aviary-editThisBGImage" label="&aviary-editThisBGImage.label;"
class="menu-iconic"
insertafter="context-viewbgimage" >
<menupopup>
<menuitem id="aviary-saveBGImage" label="&aviary-saveBGImage.label;"
class="menuitem-iconic"
accesskey="&aviary-saveBGImage.accesskey;"
insertafter="context-viewbgimage"
oncommand="gAviaryMain.SaveBGImage()" />
<menuitem id="aviary-editBGImage" label="&aviary-editBGImage.label;"
class="menuitem-iconic"
accesskey="&aviary-editBGImage.accesskey;"
insertafter="context-viewbgimage"
oncommand="gAviaryMain.EditImage(null)" />
</menupopup>
</menu>
</popup>
<popupset id="mainPopupSet">
<popup id="AviarySelectionPopup" position="overlap" flex="1"
onpopupshown="com.aviary.talon.grab.initCanvasInPopup();"
onpopuphidden="com.aviary.talon.grab.deinitCanvasInPopup();" >
<stack>
<html:canvas id="AviaryWindowCanvas" flex="1" />
<html:canvas id="AviaryPortionCanvas" flex="1" />
<hbox flex="1" pack="center" align="start">
<description id="AviaryDragReminder">
<html:br/>®ionCaptureDragReminder.label;<html:br/>
</description>
</hbox>
<hbox id="AviaryPortionBox" hidden="true" >
<hbox class="grab-left grab-top" style="cursor: nw-resize"
adjustHorz="1" adjustVert="1" />
<hbox class="grab-top grab-horzcenter" style="cursor: n-resize"
adjustHorz="0" adjustVert="1" />
<hbox class="grab-right grab-top" style="cursor: ne-resize"
adjustHorz="-1" adjustVert="1" />
<hbox class="grab-left grab-vertcenter" style="cursor: w-resize"
adjustHorz="1" adjustVert="0" />
<hbox class="grab-right grab-vertcenter" style="cursor: e-resize"
adjustHorz="-1" adjustVert="0" />
<hbox class="grab-left grab-bottom" style="cursor: sw-resize"
adjustHorz="1" adjustVert="-1" />
<hbox class="grab-bottom grab-horzcenter" style="cursor: s-resize"
adjustHorz="0" adjustVert="-1" />
<hbox class="grab-right grab-bottom" style="cursor: se-resize"
adjustHorz="-1" adjustVert="-1" />
</hbox>
<hbox id="AviaryPortionInfoBox" align="start" hidden="true">
<hbox id="AviaryPortionDimensionBox">
<label pearl-template="REGION_CAPTURE_DIMENSIONS"/>
</hbox>
<spacer flex="1" style="min-width: 5px" />
<hbox id="AviaryPortionBtnBox" hidden="true">
<button label="®ionCaptureSaveButton.label;"
style="margin-right: 10px;"
oncommand="com.aviary.talon.grab.completeGrab(false)" />
<button label="®ionCaptureCancelButton.label;"
oncommand="com.aviary.talon.grab.completeGrab(true)" />
</hbox>
</hbox>
</stack>
</popup>
</popupset>
</overlay>